/* DHR / YMF Mentor Directory */
:root {
    --navy: #092b55;
    --blue: #0759a8;
    --blue-2: #0b72c6;
    --sky: #eaf4ff;
    --ink: #172b45;
    --muted: #66768a;
    --line: #e3eaf2;
    --surface: #ffffff;
    --page: #f4f7fb;
    --green: #16834a;
    --shadow: 0 14px 38px rgba(18, 48, 82, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 3px solid rgba(18, 126, 219, .35);
    outline-offset: 3px;
}
.topbar { background: #08264a; color: #fff; }
.top-inner {
    max-width: 1320px; min-height: 48px; margin: auto; padding: 7px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.gov, .top-links, .dhr-brand { display: flex; align-items: center; }
.gov { gap: 12px; }
.emblem {
    width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%; display: grid; place-items: center; color: #fff;;
}
.gov-copy { display: flex; flex-direction: column; line-height: 1.3; }
.gov-copy strong { font-size: 11px; font-weight: 700; }
.gov-copy span { font-size: 10px; color: #d6e2f0; }
.top-divider { height: 28px; width: 1px; background: rgba(255,255,255,.3); margin: 0 5px; }
.top-links { gap: 12px; font-size: 11px; color: #e1ebf7; }
.top-links a:hover { color: #fff; text-decoration: underline; }
.social { font-size: 16px; }
.brand-header { background: #fff; border-bottom: 1px solid var(--line); }
.brand-inner {
    max-width: 1320px; min-height: 96px; margin: auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.dhr-brand { gap: 17px; min-width: 0; }
.dhr-brand img {width: 340px;
    max-width: 100%;
    max-height: 76px;

    object-fit: contain; }
.brand-divider { width: 1px; height: 54px; background: #dce4ed; }
.programme-name { display: flex; flex-direction: column; gap: 3px; }
.programme-name span { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.programme-name strong { color: var(--navy); font-size: 17px; line-height: 1.35; }
.brand-back {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 15px; border: 1px solid #cbd9e8; border-radius: 8px;
    color: var(--blue); font-weight: 700; transition: .2s ease;
}
.brand-back:hover { background: var(--sky); border-color: #9ec7ed; }
.mentor-hero {
    position: relative;
    overflow: hidden;

    padding: 0px 7% 0px;

    background:
        linear-gradient(
            115deg,
            #062d59 0%,
            #07549b 55%,
            #1283d0 100%
        );

    color: #fff;
}
.hero-pattern {
    position: absolute; inset: 0; opacity: .12;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
    background-size: 24px 24px;
    mask-image: linear-gradient(90deg, #000, transparent 80%);
}
.mentor-hero-content {
    position: relative; max-width: 1320px; margin: auto; padding: 58px 24px 62px;
}
.hero-tag {
    display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.28); border-radius: 30px;
    background: rgba(255,255,255,.1); font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.mentor-hero h1 { margin: 17px 0 8px; font-size: clamp(30px, 4vw, 43px); line-height: 1.15; letter-spacing: -.035em; }
.mentor-hero p { max-width: 690px; margin: 0; color: #e0efff; font-size: 15px; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 25px; color: #e9f4ff; font-size: 12px; }
.hero-highlights span { display: inline-flex; align-items: center; gap: 8px; }
.hero-highlights i { color: #a9dcff; }
.mentor-content { padding: 46px 0 64px; }
.content-container { 
    max-width: 1450px;
    width: calc(100% - 48px);
    margin: auto; }
.mentor-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-label { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.mentor-heading h2 { margin: 5px 0 3px; color: var(--navy); font-size: 29px; letter-spacing: -.03em; }
.mentor-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.mentor-total {
    display: flex; align-items: center; gap: 11px; padding: 10px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.total-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--sky); }
.mentor-total strong, .mentor-total small { display: block; line-height: 1.25; }
.mentor-total strong { color: var(--navy); font-size: 17px; }
.mentor-total small { color: var(--muted); font-size: 10px; }
.mentor-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    margin-bottom: 22px; padding: 14px; border: 1px solid var(--line); border-radius: 13px;
    background: #fff; box-shadow: 0 5px 18px rgba(18,48,82,.035);
}
.mentor-search {
    display: flex; align-items: center; gap: 11px; width: min(620px, 100%);
    padding: 0 12px; border: 1px solid #dce5ef; border-radius: 9px; background: #fbfdff;
    color: #71839a;
}
.mentor-search:focus-within { border-color: #6aa8df; box-shadow: 0 0 0 3px rgba(11,114,198,.09); }
.mentor-search input { width: 100%; height: 43px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.mentor-search input:focus-visible { outline: 0; }
.clear-search { display: none; padding: 5px; border: 0; background: transparent; color: #71839a; cursor: pointer; }
.clear-search.visible { display: inline-flex; }
.search-count { color: var(--muted); white-space: nowrap; font-size: 11px; }
.mentor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; align-items: stretch; }
.mentor-item { min-width: 0; }
.mentor-card {
    height: 100%; display: flex; flex-direction: column; padding: 19px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 15px;
    box-shadow: 0 5px 20px rgba(18,48,82,.045); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.mentor-card:hover { transform: translateY(-4px); border-color: #c6dced; box-shadow: var(--shadow); }
.card-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.mentor-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.mentor-status.is-active { color: #137644; background: #e8f7ef; }
.mentor-status.is-inactive { color: #7b8794; background: #f0f2f5; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.card-mark { color: #b7cce0; font-size: 17px; }
.mentor-profile { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mentor-photo, .modal-photo {
    flex: 0 0 auto; width: 78px; height: 78px; overflow: hidden; border-radius: 50%;
    border: 4px solid #edf5fc; background: linear-gradient(135deg, #dceeff, #b8d8f4);
}
.mentor-photo img, .modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.mentor-initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #0759a8; font-size: 23px; font-weight: 800; }
.mentor-name { min-width: 0; }
.mentor-name h3 { margin: 0 0 3px; color: var(--navy); font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.mentor-name p { margin: 0; color: var(--blue); font-size: 11px; font-weight: 700; }
.other-designation { display: inline-block; margin-top: 5px; color: #64758a; font-size: 10px; line-height: 1.4; }
.mentor-details { display: grid; gap: 13px; margin: 20px 0; padding: 15px 0; border-top: 1px solid #edf1f5; border-bottom: 1px solid #edf1f5; flex: 1; }
.detail-row { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.detail-icon { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 8px; background: #eff6fd; color: var(--blue); font-size: 12px; }
.detail-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.detail-copy small { color: #8492a3; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.detail-copy strong { color: #354a63; font-size: 11px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.mentor-card-footer { margin-top: auto; }
.view-profile-btn {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 11px 13px; border: 1px solid #cfe1f2; border-radius: 8px;
    background: #f5faff; color: var(--blue); font-size: 11px; font-weight: 800; cursor: pointer; transition: .2s ease;
}
.view-profile-btn:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.no-mentor { grid-column: 1 / -1; padding: 48px 20px; text-align: center; background: #fff; border: 1px dashed #cbd8e6; border-radius: 14px; }
.no-mentor[hidden] { display: none !important; }
.empty-icon { width: 54px; height: 54px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--sky); font-size: 20px; }
.no-mentor h3 { margin: 13px 0 4px; color: var(--navy); font-size: 16px; }
.no-mentor p { margin: 0; color: var(--muted); font-size: 12px; }
.mentor-pagination { display: flex; justify-content: center; margin-top: 30px; }
.mentor-pagination nav { display: flex; justify-content: center; }
.mentor-pagination .pagination { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 0; list-style: none; }
.mentor-pagination .page-link { display: block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--blue); font-size: 12px; }
.mentor-pagination .page-item.active .page-link { border-color: var(--blue); background: var(--blue); color: #fff; }
.mentor-pagination .page-item.disabled .page-link { color: #aab4c0; }
.mentor-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.mentor-modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,20,39,.68); backdrop-filter: blur(4px); }
.mentor-modal-content {
    position: relative; z-index: 1; width: min(680px, 100%); max-height: min(88vh, 850px); overflow-y: auto;
    border-radius: 16px; background: #fff; box-shadow: 0 25px 80px rgba(0,0,0,.25);
    animation: modalIn .2s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-header-custom { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 24px; color: #fff; background: linear-gradient(110deg, #082b56, #0867b5); }
.modal-header-custom span { color: #c9e5ff; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.modal-header-custom h2 { margin: 4px 0 0; font-size: 19px; }
.modal-close { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 25px; line-height: 1; cursor: pointer; }
.modal-profile-header { display: flex; align-items: center; gap: 17px; padding: 23px 24px; background: #f4f9fe; border-bottom: 1px solid var(--line); }
.modal-photo { width: 88px; height: 88px; border-color: #fff; box-shadow: 0 3px 12px rgba(20,60,100,.12); }
.modal-person h2 { margin: 0 0 3px; color: var(--navy); font-size: 20px; line-height: 1.3; }
.modal-person p { margin: 0 0 8px; color: var(--blue); font-size: 12px; font-weight: 700; }
.modal-role { color: #71839a; font-size: 10px; }
.modal-body-custom { padding: 22px 24px; }
.modal-body-custom h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--navy); font-size: 13px; }
.modal-body-custom h3:not(:first-child) { margin-top: 23px; }
.modal-body-custom h3 i { color: var(--blue); }
.modal-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.modal-info-item { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fcfdff; }
.modal-info-item small { display: block; margin-bottom: 4px; color: #8795a6; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.modal-info-item strong { display: block; color: #334a64; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.modal-full-info { padding: 13px 14px; border-left: 3px solid var(--blue-2); border-radius: 5px; background: #f3f8fd; color: #334a64; font-size: 12px; overflow-wrap: anywhere; }
.modal-full-info a { color: var(--blue); }
.modal-footer-custom { display: flex; justify-content: flex-end; padding: 0 24px 22px; }
.modal-done { padding: 9px 17px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.modal-done:hover { background: var(--navy); }
body.modal-open { overflow: hidden; }

@media (max-width: 1000px) {
    .mentor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .programme-name strong { font-size: 14px; }
}
@media (max-width: 680px) {
    .top-inner { align-items: flex-start; flex-direction: column; padding: 9px 16px; gap: 8px; }
    .gov { gap: 8px; }
    .gov-copy strong { font-size: 9px; }
    .gov-copy span { font-size: 8px; }
    .top-links { gap: 8px; font-size: 9px; }
    .brand-inner { min-height: auto; padding: 12px 16px; align-items: flex-start; }
    .dhr-brand { gap: 10px; }
    .dhr-brand img { width: 52px; height: 52px; }
    .brand-divider { height: 43px; }
    .programme-name span { font-size: 8px; }
    .programme-name strong { font-size: 11px; }
    .brand-back { padding: 8px 9px; font-size: 10px; }
    .brand-back span { display: none; }
    .mentor-hero-content { padding: 42px 20px; }
    .mentor-hero p { font-size: 13px; }
    .hero-highlights { gap: 10px 16px; font-size: 10px; }
    .content-container { width: calc(100% - 30px); }
    .mentor-content { padding: 32px 0 45px; }
    .mentor-heading { align-items: flex-start; }
    .mentor-heading h2 { font-size: 24px; }
    .mentor-total { padding: 8px 10px; }
    .total-icon { width: 32px; height: 32px; }
    .mentor-toolbar { align-items: stretch; flex-direction: column; gap: 8px; padding: 10px; }
    .search-count { text-align: right; }
    .mentor-grid { grid-template-columns: 1fr; gap: 14px; }
    .mentor-card { padding: 16px; }
    .modal-info-grid { grid-template-columns: 1fr; }
    .modal-profile-header { padding: 18px; }
    .modal-body-custom { padding: 18px; }
    .modal-header-custom { padding: 17px 18px; }
    .modal-footer-custom { padding: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
